package com.nwpu.coursesupport.mapper;

import java.util.List;

import com.nwpu.coursesupport.criteria.BatchDealAnswerSearchCriteria;
import com.nwpu.coursesupport.criteria.TaskSubmitResultSearchCriteria;
import com.nwpu.coursesupport.entity.TaskSubmitResult;

public interface TaskSubmitResultMapper extends BaseMapper<TaskSubmitResult>{
	
	public int batchSave(List<TaskSubmitResult> list);
	   
	public boolean submitTask(TaskSubmitResult taskResult);
	
	public boolean batchReviewTask(TaskSubmitResult taskResult);
	
	public boolean reviewTask(TaskSubmitResult taskResult);
	
	public boolean shareTask(TaskSubmitResult taskResult);
	
	public boolean updateStatus(TaskSubmitResult taskResult);
	
	public boolean updateAnswerStatus(TaskSubmitResult taskResult);
	
	public boolean batchUpdateAnswerVisible(BatchDealAnswerSearchCriteria sc);
	
	public List<Integer> findByIds(TaskSubmitResultSearchCriteria sc);
}
